<?php
	session_start();
	if($_SESSION['username']!="")
	{
		$cat = $_SESSION['category'];
		header("location:$cat/profile.php");
	}
?>

<html>
    <head>

<link rel = 'stylesheet' href = 'abcd.css' type = 'text/css' />

        <style>
div.wrapper {
    display:block;
    margin:0 0 1px 0;
    text-align:left;
}

#header {
    position:relative;
    display:block;
    margin:0 auto 0;
    width:100%;
}

.top-head {
    height : 7%;
    width : 100%;
    background-color : #f3770b;
}

#heading {
    font-size : 40px;
    text-align : center;
    padding-left : 40%;
}

#cat_pan {
    display : block;
    position : absolute;
    border : 1px solid black;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    background-color : white;
    height : 19%;
    width : 80.6%;
    margin-top : 1%;
}

.cat_panel {
    padding-left : 18%;
}


</style>


<script type = 'text/javascript' language = 'javascript'>

function bg_change(id)    {
    var a = document.getElementById('cat_pan');
    switch(id)
    {
        case 'stu' : a.style.backgroundColor = "grey";
        break;
        case 'gui' : a.style.backgroundColor = "#34a0cd";
        break;
        case 'men' : a.style.backgroundColor = "#ef3e42";
        break;
        case 'col' : a.style.backgroundColor = "#fdb912";
        break;
        case 'ind' : a.style.backgroundColor = "#98cf6e";
        break;
    }
    //a.style.backgroundColor = "red";
    return;

}
function registration()
{
	window.location.assign("reg/registration.php");
}
function login()
{
	window.location.assign("login/login.php");
}

</script>

</head>
    <body>
        <div class = 'wrapper'>
            <div id = 'header'>
                <!-- <div class = 'top-head'><font id ='heading'>Register</font></div> -->
            </div>
        </div>

<div class = 'wrapper' align='center'>
	<input type='button' class='top-head' style='width:80px' value='Registration' id='register' onclick='return registration()'/>
</div>

<div class = 'wrapper' align='center'>
	<input type='button' class='top-head' style='width:80px' value='Login' id='login' onclick='return login()'/>
</div>



    </body>
</html>